package com.wst.provider.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @ProjectName: tianruan
 * @Package: com.wst.provider.config
 * @ClassName: SpringConfig
 * @Author: 40971
 * @Description:
 * @Date: 2022/5/15 12:18
 * @Version: 2.0
 */
@Configuration
public class SpringConfig {

    @LoadBalanced
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
